home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
hardlock.arc
/
HARDUNL.LST
< prev
Wrap
File List
|
1986-09-20
|
4KB
|
97 lines
Microsoft (R) Macro Assembler Version 4.00 9/20/86 19:33:46
Page 1-1
C include macros.asm
C .LIST
Begincom hardunl
0100 E9 0343 R jmp start
0103 68 61 72 64 75 6E 6C msg0 db 'hardunlock Completed Sucessfully',10,13,'$'
6F 63 6B 20 43 6F 6D
70 6C 65 74 65 64 20
53 75 63 65 73 73 66
75 6C 6C 79 0A 0D 24
0126 68 61 72 64 75 6E 6C msg1 db 'hardunlock Disk I/O error.',10,13,'$'
6F 63 6B 20 44 69 73
6B 20 49 2F 4F 20 65
72 72 6F 72 2E 0A 0D
24
0143 0200[ buffer db 512 dup(?)
??
]
0343 start proc near
0343 B8 0201 mov ax,0201h ;read one sector
0346 8D 1E 0143 R lea bx,buffer ;set up read address
034A B9 0001 mov cx,1 ;read the partition table
034D BA 0080 mov dx,0080h ;On drive C
0350 CD 13 int 13H ;execute read
0352 72 10 jc IO_FAIL ;if carry - issue message
0354 C6 87 01FF AA mov byte ptr [bx+511],0AAh ;repair clobbered partition table
0359 B8 0301 mov ax,0301h ;set up write command
035C CD 13 int 13H
035E 8D 16 0103 R lea dx,msg0 ;point to OK message
0362 73 04 jnc SENDMSG ;display msg
0364 8D 16 0126 R IO_FAIL: lea dx,msg1 ;point to failure message
0368 B4 09 SENDMSG: mov ah,9 ;dos display string
036A CD 21 int 21h ;send message
036C CD 20 int 20h ;terminate program
start endp
endcom hardunl
Microsoft (R) Macro Assembler Version 4.00 9/20/86 19:33:46
Symbols-1
Macros:
N a m e Lines
@DEX . . . . . . . . . . . . . . 4
@DOS . . . . . . . . . . . . . . 4
@MSG . . . . . . . . . . . . . . 12
@SVC . . . . . . . . . . . . . . 4
BEGINCOM . . . . . . . . . . . . 6
BIOSM . . . . . . . . . . . . . 132
COMEQ . . . . . . . . . . . . . 24
DEFS . . . . . . . . . . . . . . 3
ENDCOM . . . . . . . . . . . . . 2
KEYEQ . . . . . . . . . . . . . 86
Segments and Groups:
N a m e Size Align Combine Class
HARDUNL . . . . . . . . . . . . 036E PARA NONE 'CODE'
Symbols:
N a m e Type Value Attr
BUFFER . . . . . . . . . . . . . L BYTE 0143 HARDUNL Length = 0200
IO_FAIL . . . . . . . . . . . . L NEAR 0364 HARDUNL
MSG0 . . . . . . . . . . . . . . L BYTE 0103 HARDUNL
MSG1 . . . . . . . . . . . . . . L BYTE 0126 HARDUNL
O0O0O0O0 . . . . . . . . . . . . L NEAR 0100 HARDUNL
SENDMSG . . . . . . . . . . . . L NEAR 0368 HARDUNL
START . . . . . . . . . . . . . N PROC 0343 HARDUNL Length = 002B
384 Source Lines
393 Total Lines
40 Symbols
49244 Bytes symbol space free
0 Warning Errors
0 Severe Errors